QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Directional Lights

Labels

ASCII
DirectionalLight
Binary
drct ( = 0x64726374 )

Data Format

Vector3D            direction
Boolean             castsShadows
direction
The direction of the directional light. This vector should be normalized.
castsShadows
A value of True indicates that the light casts shadows; a value of False indicates that the light does not cast shadows.

Data Size

16

Description

A directional light is a light that emits parallel rays in a specific direction. A directional light may be set to cast shadows.

Some style objects also specify whether or not objects in a scene shall receive shadows. However, objects in the scope of a receive shadows style set to False do not receive shadows, regardless of whether they are also appropriately situated to receive shadows from a light set to cast shadows.

Parent Hierarchy

Shared, shape, light.

Parent Objects

None.

Child Objects

Light data (optional). If no child object is specified, the light should have the properties specified in the default setting of a light data object.

Example

Container (
    DirectionalLight ( 1 0 0 True )
    LightData ( ... )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |